package com.example.tests;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import static org.testng.AssertJUnit.assertFalse;

import java.util.Random;
import java.util.logging.Logger;

import org.testng.annotations.Test;

import com.example.framework.GroupHelper;
import com.example.framework.Groups;
import com.example.objects.GroupObject;

public class GroupModificationTests extends TestBase {

	// private Logger log = Logger.getLogger("GroupModificationTests");

	@Test
	public void testFirstGroupCanBeRemoved() throws Exception {
		Groups groups = app.getGroupHelper().getGroups();
		GroupObject oldGroup = groups.getSomeGroup();
		GroupObject newGroup = new GroupObject(oldGroup);
		newGroup.setName("1123123123");
		app.getGroupHelper().modifyGroup(oldGroup, newGroup);
	}

}
